<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>
<%@include file="/commons/include/html_doctype.html" %>
<html>
<head>
	<title>采购付款申请列表</title>
	<%@include file="/commons/include/get.jsp" %>
	<script type="text/javascript">
		//放置脚本
	</script>
</head> 
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">采购付款申请列表</td>
		<td>
			<div class="menuTool">
			<a class="del" id="listFormDelAll" href="delPurchasePay.htm">删除所选</a>
			<a class="add" href="addPurchasePay1.htm">添加</a>
			<a class="back" onclick="javascript:history.back();" href="#">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="queryForm" method="post" action="getPurchasePay.htm">
<table border="0" cellspacing="0" cellpadding="0" class="queryTable">
	<tr>
		<td class="title">申请单号：</td>
		<td class="input"><input id="title" name="pay_sn" class="input" value="${fn:escapeXml(param.pay_sn)}" /></td>
	
		<td class="title">部门代码：</td>
		<td class="input">
		<select id="dept_code" name="dept_code">
				<option value="">请选择</option>
				 <c:forEach items="${departList}" var="d" varStatus="status">
					<option value="${d.dep_code}" <c:if test="${d.dep_code==param.dept_code }">selected="selected"</c:if> >${d.dep_code}</option>
				</c:forEach>
		</select>
		</td>
	
		<td class="title">计划采购申请单号：</td>
		<td class="input"><input id="title" name="plan_sn" class="input" value="${fn:escapeXml(param.plan_sn)}" /></td>
	
	
		<td class="title">申请单状态：</td>
		<td class="input">
		<select name="status" id="status">
			<option value="">请选择</option>
			<option value="0" <c:if test="${param.status==0 }">selected="selected"</c:if> >申请单未递交到下一级</option>
			<option value="1" <c:if test="${param.status==1 }">selected="selected"</c:if> >已经递交到下一级审核</option>
			<option value="2" <c:if test="${param.status==2 }">selected="selected"</c:if> >同意采购付款</option>
			<option value="3" <c:if test="${param.status==3 }">selected="selected"</c:if> >采购完成并已付款</option>
		</select>
		</td>
	
		<td class="query" colspan="2"><input id="_querySubmit_" type="submit" class="button" value="查询" /></td>
	</tr>
</table>
</form>
<div class="line"></div>
<form id="listForm" method="post" action="delPurchasePay.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr class="list_title">
		<td style="width:3%"><input id="chkall" type="checkbox" /></td>
		<td>申请单号</td>
		<td>制单日期</td>
		<td>申请单状态</td>
		<td>操作</td>
	</tr>
<c:forEach items="${pageModel.result}" var="d" varStatus="status">
	<tr class="${status.index%2==0?'list_even':'list_odd'}">
		<td nowrap="nowrap">
			<c:if test="${d.status==0}">
			<input name="keyIndex" type="checkbox" value="${d.id}" />
			</c:if>
		</td>
		<td>${fn:escapeXml(d.pay_sn)}</td>
		<td>${cfn:formatDate(d.create_date, 'yyyy-MM-dd')}</td>
		<td>
			<c:if test="${d.status==0}">已采购完成未付款</c:if>
			<c:if test="${d.status==1}">未审核</c:if>
			<c:if test="${d.status==2}">已批准付款</c:if>
			<c:if test="${d.status==3}">采购完成并已付款</c:if>
		</td>
		<td>
			<div class="menuTool">
			<c:if test="${d.status==0}">
				<a class="del" href="delPurchasePay.htm?keyIndex=${d.id}">删除</a>
				<a class="upd" href="updPurchasePay1.htm?keyIndex=${d.id}">修改</a>
				<a class="upd" href="submitPay1.htm?keyIndex=${d.id}">提交</a>
			</c:if>
			<c:if test="${d.status==1}">
				<a class="upd" href="auditPay1.htm?keyIndex=${d.id}">审核</a>
			</c:if>
			<c:if test="${d.status==2}">
				<a class="upd" href="okPay.htm?keyIndex=${d.id}">付款</a>
			</c:if>
			<a class="get" href="getPurchasePayById.htm?keyIndex=${d.id}">详细</a>
			</div>
		</td>
	</tr>
</c:forEach>
</table>
<input id="_submit_" type="submit" style="display:none;" />
</form>
<table border="0" cellspacing="0" cellpadding="0" class="bottomTable">
	<tr><td>${pageNav.page}</td></tr>
</table>
</body>
</html>
